package xrz.xuanbao.modular.mine.baoku;

import org.xutils.x;

import xrz.cuanbao.R;
import xrz.cuanbao.application.CuanbaoApplication;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;

import com.xrz.sxm.base.AdapterBase;

public class Adapter_FaQi extends AdapterBase<String> {
	private Context ctx;
	private BaoKuDialog dialogUtil;
	public Adapter_FaQi(Context ctx) {
		super(ctx);
		this.ctx = ctx;
		dialogUtil=new BaoKuDialog(ctx);
	}

	@Override
	protected View getExView(int position, View view, ViewGroup parent) {
		view=LayoutInflater.from(ctx).inflate(R.layout.item_baokufaqi, null);
		ImageView Img = (ImageView) view.findViewById(R.id.img_faqi);
		x.image().bind(Img, getList().get(position));
		Button Btn_Cancle=(Button) view.findViewById(R.id.cancle_xiangmu);
		Btn_Cancle.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				dialogUtil.showDialog();				
			}
		});
		return view;
	}

}
